<?php

// Staff Chip
// used to display the photo, name, title, and basic info about a staff memeber

// @param  string  $short_name The slugified full name of the person
// @param  URL     $img        The path to the person's portrait
// @param  string  $name       The full name of the person
// @param  string  $title      The position title of the person
// @param  string  $email      The email address for the person
// @param  string  $twitter    The twitter account for the person (optional)

?>

<div id="<?= $short_name ?>" class="staff-chip" itemscope itemtype="http://schema.org/Person">
    <img src="<?= $img ?>"
      class="portrait"
      alt="<?= $name ?>"
      border="0"
      width="300"
      height="300"
      itemprop="image"
      />
    <p>
      <strong itemprop="name"><?= $name ?></strong><br>
      <em itemprop="jobTitle"><?= $title ?></em><br>
      <a href="mailto:<?= $email ?>"><?= $email ?></a><br>
      <?php if($twitter): ?>
      <a class="url twitter external"
        href="http://twitter.com/<?= $twitter ?>"
        target="_blank"
        >@<?= $twitter ?>
      </a>
    </p>
    <?php endif ?>
</div><!-- /#<?= $short_name ?> -->

